package core;

import datastructure.WeatherInfo;

public class Home {
	//这是活取天气xml的连接，可直接从浏览器访问查看
	static final String weburl="http://wthrcdn.etouch.cn/WeatherApi?citykey=101120101"; 

	DownloadXML downXML;
	ResolveXML resolveXML;
	WeatherInfo weather;
	MakeMessage message;
	GetCurrentTimeOnline currTime;
	public Home() {
		
		
		
		weather=new WeatherInfo();
		currTime=new GetCurrentTimeOnline(weather);
		downXML=new DownloadXML(weburl);
		resolveXML =new ResolveXML("temp.xml",weather);
		message=new MakeMessage(weather);
		System.out.println(message.Message());
	}
	
	public static void main(String[] args) {
		new Home();
	}
}
